﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace zielonka.co.uk.extensions.system
{
    //Description:	Strip a string of the specified substring or set of characters
    /*
        string s= "abcde".Reverse();
    */

    public static partial class StringExtensions
    {
        public static string Reverse(this string input)
        {
            if(null==input)
            {
                return null;
            }

            char[] chars = input.ToCharArray();

            Array.Reverse(chars);

            return new String(chars);
        }
    }
}
